package com.itheima.userservice.bean;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
//使用这个注解可以设置创建集合的名字
@Document("User")
public class UserBean implements Serializable {
    @Id
    private String id;
    private String name;
    private String phone;
    private String address;
}
